<template>
    <div>
        <el-form ref="form" :model="form" label-width="120px" :disabled="form.disabled">
            <el-row>
                <el-col :span="12">
                    <el-form-item label="年度">
                         <el-date-picker
                          v-model="form.year"
                          type="year"
                          placeholder="选择年">
                        </el-date-picker>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="所属市县">
                        <el-cascader
                           v-model="form.shixian"
                           :options="data"
                           :props="{value: 'name', label: 'name', children: 'children', checkStrictly: true}"
                           @change="handleChange"></el-cascader>
                   </el-form-item>
                </el-col>
                <el-col :span="24">
                    <el-divider content-position="left">水利部组织</el-divider>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="不合规项目数">
                        <el-input v-model="form.shuilibuhegui"></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="已查处项目数">
                        <el-input v-model="form.shuiliyicha"></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="项目总数">
                        <el-input v-model="form.shuilizongshu"></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="24">
                    <el-divider content-position="left">省级组织</el-divider>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="不合规项目数" >
                        <el-input v-model="form.shengjibuhegui"></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="已查处项目数">
                        <el-input v-model="form.shengjiyicha"></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="项目总数">
                        <el-input v-model="form.shengjizongshu"></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="24">
                    <el-divider content-position="left">合计</el-divider>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="不合规项目数">
                        <el-input v-model="form.hejibuhegui" :disabled="true"></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="已查处项目数">
                        <el-input v-model="form.hejiyicha" :disabled="true"></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="已查处完成率">
                        <el-input v-model="form.hejichachulv" :disabled="true"></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="项目总数">
                        <el-input v-model="form.hejizongshu" :disabled="true"></el-input>
                    </el-form-item>
                </el-col>
            </el-row>
            <div  class="dialog-footer"v-if="!form.disabled">
                <el-button @click="saveEdit">取 消</el-button>
                <el-button type="primary" @click="saveEdit">确 定</el-button>
            </div>
        </el-form>
    </div>
</template>
<script>
import {data} from '@/components/common/area';
export default {
    props: {
        editVisible: {
            default : false
        },
        form: {
            default: () => {},
        },
    },
    data() {
        return{
            data: data,
        }
    },
    methods: {
        saveEdit() {
            this.$emit('close')
        }
    }
}
</script>
<style scoped>
    .dialog-footer {
        text-align: right
    }
</style>